import express from 'express'
import {
  deleteNotifications,
  getNotifications,
  getUnreadCount,
  markAsRead,
} from '../controllers/notification.controller'
import { auth } from '../middleware/auth'

const router = express.Router()

// 获取通知列表
router.get('/', auth, getNotifications)

// 获取未读通知数量
router.get('/unread', auth, getUnreadCount)

// 标记通知为已读
router.post('/read', auth, markAsRead)

// 删除通知
router.post('/delete', auth, deleteNotifications)

export default router
